﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace childcare
{
    public partial class frmbaocao : Form
    {
        SqlConnection con = new SqlConnection();
        private DataTable dt = new DataTable();
        private SqlDataAdapter da = new SqlDataAdapter();
        //private Boolean kt;
        public frmbaocao()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {

            string connect = @"Data Source=BLACK-PC\SQLEXPRESS;Initial Catalog=Childcare;Integrated Security=True";
            con = new SqlConnection(connect);
            connectdatabase.Openconnect();
            rsgiaovien frm = new rsgiaovien(connectdatabase.ex("select * from teacher"));
            frm.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmdanhsachsinhvien frmds = new frmdanhsachsinhvien();
            frmds.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Dispose();
            frmguest _fmrgues = new frmguest();
            _fmrgues.Show();
        }

        private void frmbaocao_Load(object sender, EventArgs e)
        {

        }

        private void btnhocphi_Click(object sender, EventArgs e)
        {
            this.Dispose();
            frm_test _frm = new frm_test();
            _frm.Show();
        }
    }
}
